package com.project.internship.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.project.internship.entity.Bases;
import com.project.internship.entity.Teacher;
import com.project.internship.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.security.core.userdetails.UserDetailsService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author author
 * @since 2020-04-15
 */
public interface UserService extends IService<User>, UserDetailsService {

    IPage<User> getBaseUsers(Page<User> page, String keyword);

    List<Bases> getNonBasesName();

    Integer addBaseUser(User user);

    Integer updateUser(User user);

    Integer deleteUser(Integer id);

    List<Teacher> getNonTeacherName();

    Integer addTeacherUser(User user);

    IPage<User> getTeacherUsers(Page<User> page, String keyword);

    List<User> getAllotUser();
}
